package org.zecontech.extraplus.client.renderer;

import net.minecraft.client.model.AxolotlModel;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.renderer.entity.AgeableMobRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.state.AxolotlRenderState;
import net.minecraft.resources.ResourceLocation;
import org.zecontech.extraplus.entity.Kelong;
import org.zecontech.extraplus.util.Helpers;

/**
 * Kelong渲染
 */
@SuppressWarnings("all")
public class KelongRenderer extends AgeableMobRenderer<Kelong, AxolotlRenderState, AxolotlModel> {

    public KelongRenderer(EntityRendererProvider.Context context) {
        super(context, new AxolotlModel(context.bakeLayer(ModelLayers.AXOLOTL)), new AxolotlModel(context.bakeLayer(ModelLayers.AXOLOTL_BABY)), 0.5F);
    }

    /**
     * 材质位置
     * @param axolotlRenderState 渲染状态
     * @return 实体材质的资源地址
     */
    @Override
    public ResourceLocation getTextureLocation(AxolotlRenderState axolotlRenderState) {
        return Helpers.identifier("textures/entity/kelong.jpg");
    }

    /**
     * 渲染状态
     * @return 返回新的渲染状态
     */
    @Override
    public AxolotlRenderState createRenderState() {
        return new AxolotlRenderState();
    }
}
